import React, { Component } from 'react'
import Hello from '../components/Hello'
import HelloHooks from '../components/HelloHooks'

export default class Home extends Component {
    state={
        name:""
    }
 
    render() {
        let {name}=this.state
        return (
            <div>
                <input type="text" value={name} onChange={(e)=>{
                     this.setState({name:e.target.value}) ;
                }}/>
               首页  <Hello name={name}></Hello>
               <HelloHooks name={name}></HelloHooks>
            </div>
        )
    }
}
